projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1befd17
)
Allow geocache placer to be empty in GPX read.
author
robertl
<robertl>
Mon, 2 Jul 2007 03:41:59 +0000
(
03:41
+0000)
committer
robertl
<robertl>
Mon, 2 Jul 2007 03:41:59 +0000
(
03:41
+0000)
gpx.c
patch
|
blob
|
history
diff --git
a/gpx.c
b/gpx.c
index c287bc74602a281ffa57030be1a0de5ce363d790..1ffc2231990e0e0b350996e1740797eea176a2ef 100644
(file)
--- a/
gpx.c
+++ b/
gpx.c
@@
-650,7
+650,7
@@
gpx_start(void *data, const XML_Char *xml_el, const XML_Char **xml_attr)
tag_cache_desc(attr);
break;
case tt_cache_placer:
- if (
0 == strcmp(attr[0], "id"
)) {
+ if (
*attr && (0 == strcmp(attr[0], "id")
)) {
wpt_tmp->gc_data.placer_id = atoi(attr[1]);
}
default: